Skip to content

Add rate limit to auth services - #691

Merged
AmirRajabii merged 13 commits into
devfrom
add-rate-limit-to-auth-services
Jul 22, 2026
Merged

Add rate limit to auth services#691
AmirRajabii merged 13 commits into
devfrom
add-rate-limit-to-auth-services

Conversation

@AmirRajabii

Copy link
Copy Markdown
Contributor

No description provided.

@AmirRajabii
AmirRajabii requested a review from fatemeh-i July 22, 2026 09:40
Implements a separate OAuth2 security chain for the resend-otp endpoint using pre-authentication validation. Changes include:

- Added configurable Keycloak base URL via app.auth.url property
- New preAuthSecurityChain() with dedicated JWT decoder for pre-auth clients
- Separate preAuthJwtDecoder() for validating "pre-auth-client" audience
- Improved token extraction using jwtAuthentication().tokenValue()
- Parameter rename from uuid to token for clarity
- Adjusted Keycloak connection pool and timeout settings
@AmirRajabii
AmirRajabii merged commit 128e3c5 into dev Jul 22, 2026
1 check passed
@AmirRajabii
AmirRajabii deleted the add-rate-limit-to-auth-services branch July 22, 2026 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants